<?php
/****************************************************
#####################################################
##-------------------------------------------------##
##           Everhest- Version 1.6.0               ##
##-------------------------------------------------##
## Copyright = globbersthemes.com- 2011            ##
## Date      = Mai 2011                            ##
## Author    = globbers                            ##
## Websites  = http://www.globbersthemes.com       ##
##                                                 ##
#####################################################
****************************************************/

// no direct access
defined('_JEXEC') or die('Restricted access');


?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >

<head>

	<jdoc:include type="head" />
	<?php JHTML::_('behavior.framework', true); 
	$app                = JFactory::getApplication();
	$templateparams     = $app->getTemplate(true)->params;
	$csite_name	        = $app->getCfg('sitename');
	$license	        ="globbersthemes" ;
	?>
	
	<?php   //main width
    $mod_left = $this->countModules( 'left' );
    $mod_right = $this->countModules( 'right' );
    if ( $mod_left && $mod_right ) {
    $width = '';
    } elseif ( ($mod_left || $mod_right) ) {
    $width = '-mid';
    } else {
    $width = '-full'; }
    ?>
	
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/everhest1.6/css/tdefaut.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/everhest1.6/css/box.css" type="text/css" media="all" />
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/mootools.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/script.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/jquery.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/slideshow.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/scroll.js"></script>
<link rel="icon" type="image/gif" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/favicon.gif" />

<!--[if IE 6]>
<link href="templates/<?php echo $this->template ?>/css/ie6.css" rel="stylesheet" type="text/css" />


<!--[if IE 7]>
<link href="templates/<?php echo $this->template ?>/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->

    <script type="text/javascript">
        window.addEvent('domready', function() {
        SqueezeBox.initialize({});
        $$('a.modal').each(function(el) {
            el.addEvent('click', function(e) {
                new Event(e).stop();
                 SqueezeBox.fromElement(el);
            });
         });
      });
    </script>

</head>
<body>
    <div id="header">
        <div class="pagewidth">
			<div id="header-left">
			    <div id="sitename">
                    <a href="index.php"><img src="templates/<?php echo $this->template ?>/images/logo.png" width="376" height="242" alt="logotype" /></a>
                </div>
				    <div id="tool">
					    <div id="loginbt">
                            <div  class="text-login">	
								<a href="#helpdiv" class="modal"  style="cursor:pointer" title="Login"  rel="{size: {x: 206, y: 333}, ajaxOptions: {method: &quot;get&quot;}}">
                                    <img src="templates/<?php echo $this->template ?>/images/login.jpg" width="61" height="27" alt="login form" />
								</a>
					         </div>
                        </div>
                            <div style="display:none;">
                                <div id="helpdiv" >
                                    <jdoc:include type="modules" name="login" style="xhtml" />
                                </div>
                            </div>
					
					        <div id="search">
                                <div  class="text-login">	
									<a href="#helpdiv2" class="modal"  style="cursor:pointer" title="search"  rel="{size: {x: 206, y: 100}, ajaxOptions: {method: &quot;get&quot;}}">
                                        <img src="templates/<?php echo $this->template ?>/images/search.jpg" width="61" height="27" alt="login form" />
									</a>
					            </div>
                            </div>
                                <div style="display:none;">
                                    <div id="helpdiv2" >
                                        <jdoc:include type="modules" name="position-0" style="xhtml" />
                                    </div>
                                </div>
					</div>
			</div>
			    <div id="header-right">
			        <div id="topmenu">
					    <div id="navigation">
                            <ul class="nav" id="horiznav">
					            <jdoc:include type="modules" name="position-3" />
					        </ul>
				        </div>
			        </div>
					    <div id="slideshow"> 
						    <img src="templates/<?php echo $this->template ?>/images/slide1.jpg" alt="image1" />
							<img src="templates/<?php echo $this->template ?>/images/slide2.jpg" alt="image2" />
							<img src="templates/<?php echo $this->template ?>/images/slide3.jpg" alt="image3" />
							<img src="templates/<?php echo $this->template ?>/images/slide4.jpg" alt="image4" />
							<img src="templates/<?php echo $this->template ?>/images/slide5.jpg" alt="image5" />
							<img src="templates/<?php echo $this->template ?>/images/slide6.jpg" alt="image6" />
							<img src="templates/<?php echo $this->template ?>/images/slide7.jpg" alt="image7" />
							<img src="templates/<?php echo $this->template ?>/images/slide8.jpg" alt="image8" />
						</div>
								<script type="text/javascript" charset="utf-8">
								    var $j = jQuery.noConflict(); 
								        $j(document).ready(function(){
							                $j("#slideshow").slideshow({
			                                pauseSeconds: 5,
			                                height: 230,
			                                caption: false
		                                });
		                            });
						         </script>	
				</div>
		</div>
	</div>
	    <?php if ($this->countModules('position-1') || $this->countModules('position-2') || $this->countModules('position-4')) { ?>
		    <div id="box-wrap">
		        <div class="pagewidth">
			        <div id="users-box">
				        <div class="box">
						     <jdoc:include type="modules" name="position-1" style="xhtml" />
					    </div>
					        <div class="sep">
					        </div>
					    <div class="box">
						<jdoc:include type="modules" name="position-2" style="xhtml" />
					    </div>
					        <div class="sep">
					        </div>
					    <div class="box">
						     <jdoc:include type="modules" name="position-4" style="xhtml" />
					    </div>
				    </div>
			    </div>
			</div>
		<?php } ?>
		    <div id="pathway-wrap">
				<div class="pagewidth">
			        <div id="pathway">
				        <jdoc:include type="modules" name="breadcrumbs" />
			        </div>
						<div id="datetime">
                            <?php echo date('d\ -F \-Y - H\:i'); ?>
                        </div>
				</div>
			</div>
			    <div class="pagewidth">
			        <?php if($this->countModules('left')) : ?>
			            <div id="left">
				    	    <jdoc:include type="modules" name="left" style="xhtml" />
				        </div>
				    <?php endif; ?>
				
				    <div id="main<?php echo $width; ?>">
				        <jdoc:include type="component" />
				    </div>
					
				
				    <?php if($this->countModules('right')) : ?>
				        <div id="right">
				    	    <jdoc:include type="modules" name="right" style="xhtml" />
				        </div>
				    <?php endif; ?>	
			    </div>
				    <div id="footer">
					    <div class="pagewidth">
					        <div id="footer_tm">
                                <div class="ftb">
                                    Copyright&copy; <?php echo date( '2008 - Y' ); ?> <?php echo $csite_name;?> .&nbsp;design by globbers for <a target=" _blank"  href= "http://www.globbersthemes.com" ><?php echo $license; ?></a>
                                </div>
                            </div>
	                            <div id="top">
                                    <div class="top-button">
                                        <a href="#" onclick="scrollToTop();return false;"><img src="templates/<?php echo $this->template ?>/images/top.png" width="30" height="30" alt="top" /></a>
                                    </div>
				                </div>
					    </div>
					</div>	       	  
</body>
</html>